package com.tuo51.childcare.service.Template;

import lombok.Data;

@Data
public class WxTemplateItem {

    public String name;
    public String value;
    public String color="#000000";

    public static WxTemplateItem of(String name, String value){
        WxTemplateItem ret = new WxTemplateItem();
        ret.setName(name);
        ret.setValue(value);
        return ret;
    }

    public static WxTemplateItem of(String name, String value, String color){
        WxTemplateItem ret = new WxTemplateItem();
        ret.setName(name);
        ret.setValue(value);
        ret.setColor(color);
        return ret;
    }

    @Override
    public String toString() {
        return "WxTemplateItem{" +
                "name='" + name + '\'' +
                ", value='" + value + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
